home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / DU Folder / Idling / Sources / Include / IdlingPrt.h < prev    next >
Encoding:
Text File  |  1995-10-11  |  1.8 KB  |  62 lines  |  [TEXT/MPS ]

  1. //    Copyright © 1995 Apple Computer, Inc. All rights reserved.
  2. //    Release Version:    $ 1.0 d10 $
  3.  
  4. #ifndef IDLINGPRT_H
  5. #define IDLINGPRT_H
  6.  
  7. //=======================================================================
  8. #ifndef _IDLINGDEF_
  9. #include "IdlingDef.h"
  10. #endif
  11.  
  12. // ----- Framework Includes -----
  13. #ifndef FWPART_H
  14. #include "FWPart.h"            // FW_CPart
  15. #endif
  16.  
  17. // ----- Foundation Layer -----
  18. #ifndef FWSTDDEF_H
  19. #include <FWStdDef.h>        // ?
  20. #endif
  21.  
  22. //=======================================================================
  23. class FW_CLASS_ATTR FW_CPart;
  24. class FW_CLASS_ATTR FW_CString;
  25. class FW_CLASS_ATTR FW_CMenuBar;
  26. class FW_CLASS_ATTR FW_CMenuEvent;
  27. class FW_CLASS_ATTR FW_CPresentation;
  28.  
  29. //=======================================================================
  30. class FW_CLASS_ATTR CIdlingPart : public FW_CPart {
  31. public:
  32.                         CIdlingPart(ODPart* odPart);
  33.     virtual             ~CIdlingPart();
  34.     static const ODValueType     kPartKind;
  35.     static const ODValueType     kPartUserName;
  36. // overrides
  37. protected:
  38.     virtual void         Initialize(Environment* ev);
  39.     virtual FW_CFrame*    NewFrame(Environment* ev,
  40.                                  ODFrame* odFrame,
  41.                                  FW_CPresentation* presentation,
  42.                                  FW_Boolean fromStorage);
  43.     virtual FW_Boolean    DoAdjustMenus(Environment* ev,
  44.                                       FW_CMenuBar* menuBar, 
  45.                                       FW_Boolean hasMenuFocus,
  46.                                       FW_Boolean isRoot);
  47.     virtual FW_Boolean    DoMenu(Environment* ev,
  48.                                const FW_CMenuEvent& theMenuEvent);
  49.     virtual FW_Boolean     DoIdle(Environment* ev, 
  50.                                     const FW_CNullEvent& theNullEvent);
  51. // new members
  52. public:
  53.     virtual void         MyInitMenus(Environment* ev);
  54.     virtual void        MyInvalidatePresentation(Environment* ev);
  55. private:
  56.     FW_Boolean            fIdlingActive;
  57.     FW_CPresentation*    fPresentation;
  58. };
  59.  
  60. //=======================================================================
  61. #endif
  62.